<!-- 
 Copyright 2008 Carnegie-Mellon University
 Licensed under the Apache License, Version 2.0 (the "License"); 
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
  
   http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, 
 software distributed under the License is distributed on an
 "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 KIND, either express or implied. See the License for the
 specific language governing permissions and limitations
 under the License.
-->
 
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-Control" content="no-cache">
<script type="text/javascript" src="../js/external/jquery.js"></script>
<script type="text/javascript"><!-- jQuery.noConflict(); //--></script>
<script type="text/javascript" src="../js/external/jquery-tipsy.js"></script>
<script type="text/javascript" src="../js/external/prototype.js"></script>
<script type="text/javascript" src="../js/resources.js.jsp"></script>
<script type="text/javascript" src="../js/shared.js"></script>
<script type="text/javascript" src="../js/user_manager.js"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
  $("input:text,input:password,#role").tipsy({gravity: 'w'});
  $(".formObj").css('width','400px');
  if ( $('isMonolingual').checked ) {
    $('srcLangContainer').style.display='none';
  }
});
</script>
<link rel="stylesheet" href="../css/common.css" type="text/css" />
<link rel="stylesheet" href="../css/external/jquery-tipsy.css" type="text/css" />
<title></title>
</head>
<body onLoad="initUM()">

<!-- NAVIGATION -->
<div id="header"></div>

<h2 id="um" align="center"></h2>

<table border="0" width="600" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td><span id="msg_um_direction"></span></td>
  </tr>
  <tr>
    <td><h4 id="msg_um"></h4></td>
  </tr>
  <tr>
    <td bgcolor="#FFCCCC">
    <table border="0" width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
      <tr>
        <td><span id="msg_select_user"></span><br>
          <select id="userList" style="font-size:small" onChange="loadUser(this.value)" class="inputbox"></select>
		</td>
      </tr>
    </table>
      <strong id="msg_or"></strong><br>
      <table border="0" width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
        <tr>
          <td><span id="msg_tm1_1"></span><br>
          <input id="newUser" name="newUser" type="text" class="inputbox" maxlength="20"
           onChange="verifyAlphanumeric($('newUser'))" title="alphanumeric + underscore"> 
          <input type="button" id="msg_add" onclick="return (verifyAlphanumeric($('newUser')) && addUser());" value=" ADD ">
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<div id="additional" style="display:none">
<table border="0" width="600" align="center" cellpadding="5" cellspacing="0">
  <tr>
    <td><span id="msg_tm2"></span></td>
  </tr>
  <tr>
    <td bgcolor="#FFCCCC">
      <input id="userId" type="hidden" value="">
      <table border="0" width="100%" cellpadding="5" cellspacing="0" bgcolor="#FFEFEF">
      <tr>
        <td>
        <table border="0" cellspacing="0" cellpadding="1">
        <tr>
          <td valign="top"><span id="msg_username"></span></td>
          <td><input id="userName" type="text" class="formObj" disabled></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_password"></span></td>
          <td><input id="password" type="password" class="formObj" ></td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_role"></span></td>
          <td><select id="role">
                <option value="user">user</option>
                <option value="admin">admin</option>
              </select>
          </td>
        </tr>
        <tr>
          <td valign="top"><span id="msg_user_description"></span></td>
          <td><input id="description" type="text" class="formObj" ></td>
        </tr>
      </table>
      <div align="center">
        <input id="msg_delete" type="button" value=" DELETE " style="width:80px" onClick="deleteUser()">
        &nbsp;&nbsp;
        <input id="msg_save" type="button" value=" SAVE " style="width:80px" onClick="saveUser()">
      </div>
      </td>
      </tr>
    </table>
    </td>
  </tr>
</table>
</div>

<!-- FOOTER -->

<div id="footer"></div>
 
</body>
</html>
